package com.tul.exercise.base.fanclass.eg2;

/**
 * @Description 《java编程思想》15 泛型.1 示例 3
 *  元组类：4个长度的元组
 *
 **/
public class FourTuple<A, B, C, D> extends ThreeTuple<A, B, C> {
    public final D fourth;

    public FourTuple(A a, B b, C c, D d) {
        super(a, b, c);
        this.fourth = d;
    }

    public String toString() {
        return "(" +  first + ", " + second + ", " + third + ", " + fourth + ")";
    }
}
